import cv2
import imutils
import numpy as np
from numpy import *
import os
import math
from tkinter import *
from tkinter.filedialog import askdirectory
#以下代码为PSO.py脚本的缓存结果，仅做界面演示，具体粒子群求参过程见PSO.py脚本
def ryd(dir):
    dir=str(dir)
    key=dir[-1]
    if key=="T":
        a=127.832
        b=23.733
        c=691.851
        d=501.883
        e=24212.959
        f=2698.573
    else :
        a=114.318
        b=19.070
        c=1825.079
        d=383.720
        e=16166.928
        f=3644.240

    return a,b,c,d,e,f

